<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        define('LOG_ID', $this->makeRquestHash());
    }

    /**
     * 创建不重复的HASH
     * @return string
     */
    public function makeRquestHash()
    {
        $hash = md5(uniqid()).rand(10000,99999);
        return $hash;
    }
}
